﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Sockets
{
    public interface ISessionFactory
    {
        bool ContainsSession(string identifier);

        ISocketIoSession GetSessionByUserCode(string userCode);

        ISocketIoSession[] GetSessions();

        int SessionPoolCount { get;}

        bool IsConnected { get;}

        void CloseSession(ISocketIoSession session);

    }
}
